package com.rs2hd.packethandler;

import org.apache.mina.common.IoSession;
import com.rs2hd.model.Player;
import com.rs2hd.net.Packet;

public class UserInput implements PacketHandler  {
	
	@Override
	public void handlePacket(Player player, IoSession session, Packet packet) {
		switch (packet.getId()) {
			case 206:
				int input = packet.readInt();
				player.getInputHandler().handleInput(input);
			break;
			case 172:
				packet.readByte();
				String string = packet.readRS2String();
				player.getInputHandler().handleStringInput(string);
			break;
		}
	}
	
	
}
